package main

import "fmt"

func dev(a, b int) int {
	return a / b
}

func main() {
	a := 12
	b := 0
	defer func() {
		err := recover()
		if err != nil {
			fmt.Println("异常被捕获")
		} else {
			fmt.Println("hcj")
		}
	}()
	fmt.Println(dev(a, b))

}
